from numpy import loadtxt
from numpy import max
from numpy import min
from numpy import ptp

(high_price,low_price)=loadtxt("stock.csv",delimiter=',',usecols=(3,4),unpack=True)
print("high_price的数据类型",type(high_price))
print("high_price的维数",high_price.shape)

highest=max(high_price)
print("读取该股票的股票最高价是：",highest)

lowst=min(low_price)
print("读取该股票的股票最低价是：",lowst)

a=(highest+lowst)/2
print("读取该股票的股票中间值是：",a)



high_rangh=ptp(high_price)
print("该股票最高的波动范围值是：",high_rangh)

low_rangh=ptp(low_price)
print("该股票最低的波动范围值是：",low_rangh)